<script src="//unpkg.com/vue/dist/vue.js"></script>
<script src="//unpkg.com/element-ui/lib/index.js"></script>
<div id="app">
  <el-button @click="visible = true">按钮</el-button>
  <el-dialog :visible.sync="visible" title="Hello world">
    <p>欢迎使用 Element</p>
  </el-dialog>
</div>
<script>
  var Main = {
  data() {
    return {
      visible: false
    }
  }
}
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')
</script>